//
//  CommonWebServices.h
//  HuateVideo
//
//  Created by Tiger on 12-6-24.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CommonWebServicesDelegate.h"

@interface CommonWebServices: NSObject {
    id <CommonWebServicesDelegate> delegate;
    
    NSMutableData *webData;
    NSURLConnection *connection;
	int tag;
    NSString *_rootXML;
    NSString *_className;
    BOOL _isArray;
}

@property (nonatomic, assign) id <CommonWebServicesDelegate> delegate;

@property (nonatomic, retain) NSMutableData *webData;
@property (nonatomic, retain) NSURLConnection *connection;
@property (nonatomic, assign) int tag;

- (NSString *)dictionaryToXML:(id)dic;
- (void)startRequestWithMode:(NSString *)mode Action:(NSString *)action Parma:(id)parma Class:(NSString *)className RootXML:(NSString *)rootXML resultIsArray:(BOOL)isArray;
- (void)cancelRequest;
- (void)paserXmlDataToCustomClass;
- (NSString *)trimXML:(NSString *)xml;

@end
